<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>vstprogset</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" />
    <link rel="prev" href="vstparamset.html" title="vstparamset,vstparamget" />
    <link rel="next" href="vsubv.html" title="vsubv" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">vstprogset</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="vstparamset.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="vsubv.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry">
      <a id="vstprogset"></a>
      <div class="titlepage"></div>
      <a id="IndexVstProgSet" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">vstprogset</span>
        </h2>
        <p>vstprogset — 
      Loads parameter banks to a VST plugin.
    </p>
      </div>
      <div class="refsect1">
        <a id="idp166526432"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>vstprogset</strong></span> instance, kprogram</pre>
      </div>
      <div class="refsect1">
        <a id="idp166528480"></a>
        <h2>Description</h2>
        <p>
      <span class="emphasis"><em>vstprogset</em></span> sets one of the programs in an
      <code class="filename">.fxb</code> bank.
    </p>
      </div>
      <div class="refsect1">
        <a id="idp166593648"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>instance</em></span> - the number which identifies the
      plugin, to be passed to other vst4cs opcodes.
    </p>
        <p><span class="emphasis"><em>kprogram</em></span> - the number of the program to set.</p>
      </div>
      <div class="refsect1">
        <a id="idp166596080"></a>
        <h2>Examples</h2>
        <div class="example">
          <a id="idp166596752"></a>
          <p class="title">
            <strong>Example 1029. Usage of vstprogset</strong>
          </p>
          <div class="example-contents">
            <p>
        </p>
            <pre class="programlisting">
<span class="comment">/* orc */</span>
<span class="ohdr">sr</span>     <span class="op">=</span> 44100
<span class="ohdr">kr</span>     <span class="op">=</span> 4410
<span class="ohdr">ksmps</span>  <span class="op">=</span> 10
<span class="ohdr">nchnls</span> <span class="op">=</span> 2

gihandle1 <span class="opc">vstinit</span> "c:/vstplugins/cheeze/cheeze machine.dll", 1

<span class="oblock">instr</span> 4
  <span class="opc">vstbankload</span>  gihandle1,"c:/vstplugins/cheeze/chengo'scheese.fxb"
  <span class="opc">vstprogset</span>   gihandle1, 4
  <span class="opc">vstinfo</span>      gihandle1
<span class="oblock">endin</span>

<span class="comment">/* sco */</span>
<span class="stamnt">i</span> 3 0 21
<span class="stamnt">i</span> 4 1 1 57 32
<span class="stamnt">e</span></pre>
            <p>
      </p>
          </div>
        </div>
        <br class="example-break" />
      </div>
      <div class="refsect1">
        <a id="idp166611472"></a>
        <h2>Credits</h2>
        <p>By: Andrés Cabrera and Michael Gogins</p>
        <p>
      Uses code from Hermann Seib's VSTHost and Thomas Grill's vst~
      object.
    </p>
        <p>
      VST is a trademark of Steinberg Media Technologies GmbH. 
      VST Plug-In Technology by Steinberg.
    </p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="vstparamset.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="OpcodesTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="vsubv.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">vstparamset,vstparamget </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> vsubv</td>
        </tr>
      </table>
    </div>
  </body>
</html>
